<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1.0,user-scalable=no">
    <title>授权配置</title>
    <link href="${_setting.props.ResourceCtx!'/rs'}/jsrep/3rd/bootstrap/3.3.5/css/bootstrap.css" rel="stylesheet">
    <link href="${_setting.props.ResourceCtx!'/rs'}/themes/room/sinotn.css" rel="stylesheet">
    <style>
      html{height: 100%;}
      body{height: 100%;background-color: #fff;}
      .form-group>select{
        width: 170px;
        display: inline-table;
      }
      .text-btn{
        color: #2f8ded;
        cursor: pointer;
      }
      .text-btn:hover{
        color: red;
      }
      #status{
        padding: 0 10px;
      }
    </style>
    <#include "/include/iecompatibility.html"/>
    <script src="${_setting.props.ResourceCtx!'/rs'}/jsrep/master/require.config.js"></script>
    <script data-main="master/setting/authorization.js" src="${_setting.props.ResourceCtx!'/rs'}/jsrep/3rd/requirejs/min.2.2.0.js"></script>
  </head>
  <body>
  <div class="container text-left" style="padding-top:5px;">
    <form role="form" id="form1" method="post" >
      <div class="form-group">
        <label for="ipAddr">服务IP：</label>
        <select id="ipAddr" name="ipAddr" class="form-control input-sm">
          <#if IpAddrs??>
            <#list IpAddrs as ipAddr>
            <option value="${ipAddr}"<#if ipAddr==ServerInfo.ipAddr> selected="true" </#if>>${ipAddr}</option>
            </#list>
          <#else>
            <option>本机无可用网卡</option>
          </#if>
        </select>
      </div>
      <div class="form-group">
        <label>服务端号：</label><span>${ServerInfo.port}</span>
      </div>
      <div class="form-group">
        <label>授权号：</label><span id="auth-num">${ServerInfo.authNum}</span>
        <span biz-id="refreshAuth" class="text-btn"><i class="glyphicon glyphicon-repeat"></i>刷新授权号</span>
        <span biz-id="downAuth" class="text-btn"><i class="glyphicon glyphicon-download-alt"></i>下载授权文件</span>
      </div>
    </form>
  </div>
  <div id="status"></div>
  </body>
</html>
